package testing;

import gamemngr.GameMngr;
import logic.Country;
import logic.Player;
import logic.moves.SettleMove;
import junit.framework.TestCase;


public class DivideCountriesTest extends TestCase{

	public void testIsOccupied(){
		Country country = new Country("TestCountry");
		Player player = new Player("Erez",new GameMngr());

		SettleMove settle = new SettleMove(country,player);
		assertEquals(country.isOccupied(), false);
		settle.makeMove();
		assertEquals(country.isOccupied(), true);
	}
	
	public void testDivideCountries(){
		GameMngr game = new GameMngr();
		Player player1 = new Player("Player1",new GameMngr());
		Player player2 = new Player("Player2",new GameMngr());
		game.addPlayer(player1);
		game.addPlayer(player2);
		game.divideCountries();
		System.out.println(game.getMap());
		assertEquals((player1.getCountries().size() == player2.getCountries().size()), true);
		assertEquals(player1.getCountries().size(), 3);
	}

}
